package com.jslx.mapper;

import com.jslx.pojo.Cat;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author HYL
 * @create 2017-07-22 下午9:57
 **/
public interface CatMapper {
    @Select("select * from cat")
    List<Cat>  getAll();

    @Select("select * from cat")
    List<Map<String,Object>> getAll2();

    @Select("select * from cat where age>#{age} limit #{skip},#{limit}")
    List<Cat> getByPage(Map<String,Object> props);

//    @Insert("insert into cat(id,name,age) values(#{id},#{name),#{age}")
//    void addCat(Cat cat);


}
